package com.yc.spring.demo;

import com.yc.spring.demo.biz.UserBiz;
import com.yc.spring.demo.mapper.UserMapper;
import com.yc.spring.demo.web.UserController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/7/31
 * Email haijunzhou@hnit.edu.cn
 */
@RunWith(SpringRunner.class)
@ContextConfiguration(classes = AnnoConfig.class)
public class IocConfig {

    @Autowired
    private UserBiz userBiz;
    @Autowired
    private UserController userController;
    @Autowired
    private UserMapper userMapper;

    @Test
    public void test(){
        System.out.println("userController = " + userController);
        System.out.println("userBiz = " + userBiz);
        System.out.println("userMapper = " + userMapper);

    }

}
